package com.syh.jn.scm.dto.supplier.sale;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Date:2018/7/17
 * Author:Clown
 *供应商销售退货dto用于确认收货;
 */
@Data
public class SupplierSaleReturnGoodsDto implements Serializable {
  /**
   * id
   */
  @NotNull(message = "id不能为空")
  private Long id;
  /**
   * 商品id
   */
  @NotNull(message = "商品id不能为空")
  private Long goodsId;
  /**
   * 单价
   */
  @NotNull(message = "单价不能为空")
  private BigDecimal price;
  /**
   * 服务商收到退货数量
   */
  @NotNull(message = "服务商收到退货数量不能为空")
  @DecimalMin("0")
  private BigDecimal returnInQuantity;
  /**
   * 差异原因
   */
  private Long returnReasonId;
}
